package com.ktgj.train.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.train.mapper.TrainOrderOperationMapper;
import com.ktgj.train.domain.TrainOrderOperation;
import com.ktgj.train.service.ITrainOrderOperationService;

/**
 * 操作记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
@Service
public class TrainOrderOperationServiceImpl implements ITrainOrderOperationService 
{
    @Autowired
    private TrainOrderOperationMapper trainOrderOperationMapper;

    /**
     * 查询操作记录
     * 
     * @param operationid 操作记录ID
     * @return 操作记录
     */
    @Override
    public TrainOrderOperation selectTrainOrderOperationById(Long operationid)
    {
        return trainOrderOperationMapper.selectTrainOrderOperationById(operationid);
    }

    /**
     * 查询操作记录列表
     * 
     * @param trainOrderOperation 操作记录
     * @return 操作记录
     */
    @Override
    public List<TrainOrderOperation> selectTrainOrderOperationList(TrainOrderOperation trainOrderOperation)
    {
        return trainOrderOperationMapper.selectTrainOrderOperationList(trainOrderOperation);
    }

    /**
     * 新增操作记录
     * 
     * @param trainOrderOperation 操作记录
     * @return 结果
     */
    @Override
    public int insertTrainOrderOperation(TrainOrderOperation trainOrderOperation)
    {
        return trainOrderOperationMapper.insertTrainOrderOperation(trainOrderOperation);
    }

    /**
     * 修改操作记录
     * 
     * @param trainOrderOperation 操作记录
     * @return 结果
     */
    @Override
    public int updateTrainOrderOperation(TrainOrderOperation trainOrderOperation)
    {
        return trainOrderOperationMapper.updateTrainOrderOperation(trainOrderOperation);
    }

    /**
     * 批量删除操作记录
     * 
     * @param operationids 需要删除的操作记录ID
     * @return 结果
     */
    @Override
    public int deleteTrainOrderOperationByIds(Long[] operationids)
    {
        return trainOrderOperationMapper.deleteTrainOrderOperationByIds(operationids);
    }

    /**
     * 删除操作记录信息
     * 
     * @param operationid 操作记录ID
     * @return 结果
     */
    @Override
    public int deleteTrainOrderOperationById(Long operationid)
    {
        return trainOrderOperationMapper.deleteTrainOrderOperationById(operationid);
    }
}
